﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using ADEVSO.Data;
using ADEVSO.Util;
using SmartParking.Bussiness;

namespace SmartParking.Web
{
    public partial class Payment : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                (Master as Template).Title = "Detalles de Pago";
            }
        }
        
        protected void tboxEmail_TextChanged(object sender, EventArgs e)
        {
            //UserInfo userInfo = BLL.Users.Find(Application, Session, Request, tboxEmail.Text);
            //tboxName.Text = userInfo.Name.Trim();
            //tboxLastName.Text = userInfo.LastName.Trim();
            //chboxSuscriptions.Checked = userInfo.ReceiveInfo;
        }
        
        protected void cmdPay_Click(object sender, EventArgs e)
        {
            //UserInfo userInfo = new UserInfo();
            //userInfo.Name = tboxName.Text;
            //userInfo.LastName = tboxLastName.Text;
            //userInfo.ReceiveInfo = chboxSuscriptions.Checked;
            //userInfo.CCInfo = new CreditCarInfo();
            //userInfo.CCInfo.Type = userInfo.CCInfo.ConvertType(ddlCCType.Text);
            //userInfo.CCInfo.Number = tboxCCNumber.Text;
            //userInfo.CCInfo.Name = tboxCCName.Text;
            //userInfo.CCInfo.ExpirationMonth = ddlCCExpireMonth.SelectedValue;
            //userInfo.CCInfo.ExpirationYear = ddlCCExpireYear.SelectedValue;
            //userInfo.CCInfo.SecurityNumber = tboxCCSecurityNumber.Text;
            //BLL.Users.Add(Application, Session, Request, userInfo);

            // TODO: Pay Process
        }
    }
}